package cn.edu.scau.cmi.pengzhijie.composite.consistent;

import java.util.HashSet;
import java.util.Set;;

public abstract class OrganizationComponent {
	OrganizationComponent parent = null;
	Set<OrganizationComponent> children = new HashSet<OrganizationComponent>();
	
	abstract public OrganizationComponent getParent();
	abstract public OrganizationComponent addChild(OrganizationComponent child);
	abstract public OrganizationComponent removeChild(OrganizationComponent child);
	abstract public Set<OrganizationComponent> getChildren();
}
